home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 4671-5.790 / dmg-5269 / routines / screens.txt < prev    next >
Text File  |  1989-12-31  |  2KB  |  57 lines

  1.                            THE THIRD DIMENSION
  2.  
  3. When you are creating a game,you may wish the player to read a 
  4. message from off a notice on a wall.There are two ways to do 
  5. this.The first way is to use a text instrument to show the message 
  6. which will appear when the user clicks on a notice object on the 
  7. wall.Simply create an instrument then edit it to become a text 
  8. instrument.You now give your notice object the following condition-
  9.  
  10. IF ACTIVATED?
  11. SOUND(3)
  12. PRINT("YOU ARE READING A NOTICE BOARD",1)
  13. ENDIF  
  14.  
  15. This will write the message- You are reading a notice board -
  16. to instrument one when the player touches the notice on the wall
  17. and would make an audible sample (3) sound.
  18.      You could create an instrument that is the same size as the 
  19. view window which would allow you to use more lines of text.When 
  20. you wish to write the text onto the next line down,you add the 
  21. backslash and letter N to the text so that it uses the next line 
  22. down.E.g-
  23.  
  24.   \N  
  25.  
  26. So to print two lines off text you would write the following-
  27.  
  28. IF ACTIVATED?
  29. PRINT ("THIS IS THE FIRST LINE OF TEXT \N AND THIS IS THE 
  30. SECOND LINE",1) 
  31. ENDIF
  32.  
  33. An alternative to this would be to load a screen picture that 
  34. contained text.You would write your message onto a picture in 
  35. your art pack and then save it off as the same size as a 
  36. border (load a border first to get the same size then clear the 
  37. screen).Then when someone touches the notice object again,it 
  38. would show the picture containing your text.The object condition 
  39. for the notice is as follows-
  40.  
  41. IF ACTIVATED?
  42. LOADSCREEN("PICTURE.IFF,0)
  43. SOUND(3)
  44. DELAY(200)
  45. CLS
  46. ENDIF
  47.  
  48. The Delay command gives the player time to read the picture.CLS 
  49. clears the picture away after it has been read.You place the name 
  50. of your picture where it says Picture.IFF above.IFF is the 
  51. picture format.It could also be LBM,NEO or PI1. The 0 after the 
  52. comma displays just the picture and not the 3D world.Placing a 1 
  53. here instead would display the picture and 3D world.
  54.  
  55. Anthony Appleyard.
  56.  
  57.